#ifndef PRINTER_BITMAP_H
#define PRINTER_BITMAP_H

#include <stdio.h>

#ifdef __cplusplus
extern "C"
{
#endif

unsigned char *load_image(const char * const image_path,
                          int *width,
                          int *height);

void calculate_padding(const int size, int *padding_l, int *padding_r);

void convert_image_to_bits(unsigned char *pixel_bits,
                           const unsigned char *image_data,
                           const int w,
                           const int h,
                           int *bitmap_w,
                           int *bitmap_h);

#ifdef __cplusplus
}
#endif
#endif  //  PRINTER_BITMAP_H
